package main

import (
	"fmt"
	"time"
)

func main() {
	go func() {
		for i := 1; ; i++ {
			fmt.Printf("非主协程：%d\n", i)
			time.Sleep(time.Second)
		}
	}()

	for i := 1; ; i++ {
		fmt.Printf("主协程：%d\n", i)
		time.Sleep(time.Second)
	}
}
